package com.yunlong.controller;

import java.text.DateFormat;
import java.util.Date;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
//@RequestMapping("/parking")
public class BillController {
	@RequestMapping("/hello")
    public String hello(Model m) throws Exception {
    	m.addAttribute("now", DateFormat.getDateTimeInstance().format(new Date()));
    	System.out.print("fsfdsfsf");
    	if (true) {
    		throw new Exception("some expection");
    	}
        return "hello";
    }
}
